William Jon McCann [Thu, 27 Jan 2011 20:21:10 +0000 (15:21 -0500)]
Use a toolbar with symbolic icons under scrolled lists
Daniel Mustieles [Thu, 27 Jan 2011 20:21:53 +0000 (21:21 +0100)]
Updated Spanish translation
Carlos Garnacho [Sun, 23 Jan 2011 13:34:14 +0000 (14:34 +0100)]
Remove GTK_RBNODE_IS_SEMI_[COLLAPSED|EXPANDED] flags.
These aren't used anymore.
Carlos Garnacho [Sun, 23 Jan 2011 13:31:19 +0000 (14:31 +0100)]
Set "cell" class and state before rendering a cellrenderer.
Carlos Garnacho [Wed, 12 Jan 2011 20:29:41 +0000 (21:29 +0100)]
Make GtkCellRendererAccel use GtkStyleContext
Carlos Garnacho [Wed, 12 Jan 2011 20:29:11 +0000 (21:29 +0100)]
Make GtkCellRendererPixbuf use GtkStyleContext
Carlos Garnacho [Wed, 12 Jan 2011 20:28:44 +0000 (21:28 +0100)]
Make GtkCellRendererProgress use GtkStyleContext
Carlos Garnacho [Wed, 12 Jan 2011 20:27:25 +0000 (21:27 +0100)]
Make GtkCellRendererToggle use GtkStyleContext
Carlos Garnacho [Wed, 12 Jan 2011 20:26:52 +0000 (21:26 +0100)]
Make GtkCellRendererText use GtkStyleContext
Carlos Garnacho [Wed, 12 Jan 2011 20:26:25 +0000 (21:26 +0100)]
Make GtkIconView use GtkStyleContext
Carlos Garnacho [Wed, 12 Jan 2011 20:18:07 +0000 (21:18 +0100)]
Make GtkTreeView use GtkStyleContext
Expander animation has been replaced by implicit animations
from the style context.
Column headers are also properly themed, GtkContainer::get_path_for_child()
is implemented and the treeview resets column buttons style on columns
being reordered.
The default CSS has changed to theme treeviews sensibly.
Carlos Garnacho [Wed, 12 Jan 2011 20:07:05 +0000 (21:07 +0100)]
Make GtkCellArea use GtkStyleContext
gtk_cell_area_[gs]et_style_detail() is no longer needed, as
the passed widget's context would already have all necessary
info.
Carlos Garnacho [Sun, 23 Jan 2011 13:12:36 +0000 (14:12 +0100)]
Add gtk_cell_renderer_get_state()
This is a helper function to help retrieve a GtkStateFlags
from a GtkCellRendererState, also given the cell renderer
and widget sensitivities.
Colin Walters [Thu, 27 Jan 2011 16:19:51 +0000 (11:19 -0500)]
Clarify documentation header about GTK+ 3 vs 2
I think it's confusing for a lot the developers out there who
may not even be aware of GTK+ 3 coming, if suddenly GTK+ 3 becomes
the "stable" version of "gtk" on library.gnome.org. It may
not even be feasible for them to port to GTK+3 if it's not
shipped in the operating systems they're targeting (for example,
RHEL 6).
Since practically speaking, we expect people to consume GTK+ 2 for
several years at least, redirect these people to the right pages.
(I didn't attempt to explain the differences between the libraries
here, but hopefully the major version difference is enough of a hint)
As a side effect, this makes the generated HTML look better; previously
it looked rather crappy, since the "for GTK &version;" was totally
offset and in a different group from the documentation title.
Tristan Van Berkom [Thu, 27 Jan 2011 07:30:15 +0000 (16:30 +0900)]
Added <mime-types> and <patterns> parsing support to GtkFileFilter.
Kjartan Maraas [Thu, 27 Jan 2011 10:25:19 +0000 (11:25 +0100)]
Updated Norwegian bokmål translation.
Tristan Van Berkom [Thu, 27 Jan 2011 07:04:02 +0000 (16:04 +0900)]
Removed a useless redundant line of code in gtkcellview.c
Tristan Van Berkom [Wed, 26 Jan 2011 18:12:35 +0000 (03:12 +0900)]
Added links to the GtkTextTagTable and GtkMenuToolButton GtkBuildable documentation from GtkBuilder documentation.
Matthias Clasen [Wed, 26 Jan 2011 16:33:19 +0000 (11:33 -0500)]
Document new default handling
Matthias Clasen [Wed, 26 Jan 2011 16:20:22 +0000 (11:20 -0500)]
Rename GTK_SETTINGS_SOURCE_RC_FILE to _THEME
This makes more sense, since we don't parse rc files anymore.
This is private api inside gtksettings.c, anyway.
Matthias Clasen [Wed, 26 Jan 2011 16:18:11 +0000 (11:18 -0500)]
Parse a per-theme settings.ini file
This lets themes override settings values again. We are using
the same priority that was used from the rc file parser, so things
are largely unchanged, relative to other settings sources.
Matthias Clasen [Wed, 26 Jan 2011 16:17:34 +0000 (11:17 -0500)]
Privately export css_provider_get_theme_dir
Matthias Clasen [Wed, 26 Jan 2011 15:46:40 +0000 (10:46 -0500)]
Break out into a separate function
Move key file parsing to gtk_settings_load_from_key_file(), in
preparation for loading per-theme files. Load key files from both
/etc and ~/.config, with the latter overriding the former. Support
parsing enum values.
Matthias Clasen [Wed, 26 Jan 2011 13:57:08 +0000 (08:57 -0500)]
First pass a parsing a keyfile for default settings
Fran Diéguez [Thu, 27 Jan 2011 02:26:00 +0000 (03:26 +0100)]
QA of Galician translations
Matthias Clasen [Wed, 26 Jan 2011 23:19:35 +0000 (18:19 -0500)]
Document that gtk_widget_queue_draw_area is in widget coordinates
Daniel Mustieles [Wed, 26 Jan 2011 19:48:29 +0000 (20:48 +0100)]
Updated Spanish translation
Khaled Hosny [Wed, 26 Jan 2011 15:54:57 +0000 (17:54 +0200)]
Updated Arabic translation
Tristan Van Berkom [Wed, 26 Jan 2011 14:58:47 +0000 (23:58 +0900)]
Added links to the GtkComboBox/GtkRecentFilter GtkBuildable documentation from GtkBuilder documentation.
Tristan Van Berkom [Wed, 26 Jan 2011 13:19:41 +0000 (22:19 +0900)]
Fixed GtkCellLayout to parse <cell-packing> property text accumulatively.
Tristan Van Berkom [Wed, 26 Jan 2011 13:10:33 +0000 (22:10 +0900)]
Fixed GtkContainer to parse <packing> property text accumulatively.
Tristan Van Berkom [Wed, 26 Jan 2011 12:56:43 +0000 (21:56 +0900)]
Changed GtkComboBoxText <items> builder parser to use g_string_append_len().
Tristan Van Berkom [Wed, 26 Jan 2011 12:53:45 +0000 (21:53 +0900)]
Changed GtkRecentFilter builder parsing to use g_string_append_len
Tristan Van Berkom [Wed, 26 Jan 2011 12:48:53 +0000 (21:48 +0900)]
Fix GtkRecentFilter GtkBuildable parsing to handle incomming text accumulatively
Tristan Van Berkom [Wed, 26 Jan 2011 12:44:18 +0000 (21:44 +0900)]
Fix GtkComboBoxText GtkBuildable <items> parsing to handle incomming text accumulatively
Tristan Van Berkom [Mon, 24 Jan 2011 08:08:31 +0000 (17:08 +0900)]
Added a line to the documentation example of GtkRecentFilter
Tristan Van Berkom [Mon, 24 Jan 2011 08:05:57 +0000 (17:05 +0900)]
Added GtkBuildable support for adding rules to GtkRecentFilter
Also added documentation section for this. Since the GtkRecentFilter
documentation was still living in sgml, as a side-effect I migrated these
docs to the gtkrecentfilter.[ch] sources.
Martin Pitt [Wed, 26 Jan 2011 13:39:50 +0000 (14:39 +0100)]
[GI] Fix gtk_tree_view_get_cursor() transfer annotation
Christian Dywan [Fri, 24 Sep 2010 16:04:14 +0000 (18:04 +0200)]
State that _add_button functions return a "#GtkButton widget"
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=586635
Michael Natterer [Tue, 25 Jan 2011 21:29:00 +0000 (22:29 +0100)]
gtk: add missing class padding
Sorry for this late ABI break, but the newly added style classes
definitely need padding, so I can just as well add missing padding
globally.
Carlos Garnacho [Tue, 25 Jan 2011 12:30:24 +0000 (13:30 +0100)]
Make gtk_widget_get_state() only handle GtkStateType values available in 2.x
GtkStateType was generally used as an index in GtkStyle color arrays, so
bigger values will cause invalid memory accesses in widgets that are still
doing that. this was seen in focused GtkIconViews for example
Chao-Hsiung Liao [Tue, 25 Jan 2011 11:23:35 +0000 (19:23 +0800)]
Updated Traditional Chinese translation (Hong Kong and Taiwan)
Matthias Clasen [Tue, 25 Jan 2011 03:20:35 +0000 (22:20 -0500)]
Clarify documentation about application vs window lifecycle
https://bugzilla.gnome.org/show_bug.cgi?id=639931
Matthias Clasen [Tue, 25 Jan 2011 00:25:08 +0000 (19:25 -0500)]
Add gtk_app_chooser_button_get/set_heading
Carlos Garnacho [Mon, 24 Jan 2011 18:55:41 +0000 (19:55 +0100)]
Do not modify associated device for non-master devices on dispose
Only master devices must modify the associated device to separate
a pointer/keyboard pair, slave devices must only call
_gdk_device_remove_slave().
Fixes bug 639767 - password not accepted in gnome-screensaver dialog,
reported by Frederic Crozat. On VT-switch, the X server removes its
grab on HW devices, the effect on clients is that slave devices
disappear, and these were mistakenly mangling the master device
hierarchy. so gdk_device_get_associated_device() on the client
pointer wouldn't return the paired keyboard anymore.
The final effect is that gtkplug-x11 wasn't setting a keyboard to
its generated events.
Carlos Garnacho [Mon, 24 Jan 2011 17:14:05 +0000 (18:14 +0100)]
Unset border-width for treeview rows in default CSS
Fixes bug #640391 - Display lines between rows when window is focused.
Reported by Guillaume Desmottes.
Matthias Clasen [Mon, 24 Jan 2011 12:46:15 +0000 (07:46 -0500)]
Avoid passing widgets around here
The style context is enough.
Matthias Clasen [Mon, 24 Jan 2011 05:24:12 +0000 (00:24 -0500)]
Port gtk_draw_insertion_cursor to GtkStyleContext
Matthias Clasen [Mon, 24 Jan 2011 04:48:32 +0000 (23:48 -0500)]
Kill one more unused variable
Matthias Clasen [Mon, 24 Jan 2011 04:20:57 +0000 (23:20 -0500)]
Don't leak CursorInfo structs
Matthias Clasen [Mon, 24 Jan 2011 02:50:39 +0000 (21:50 -0500)]
Silence new gcc warnings
gcc 4.6.0 has started to warn about set-but-unused variables.
So don't do that, then.
Carlos Garnacho [Mon, 24 Jan 2011 01:38:12 +0000 (02:38 +0100)]
Add extra checks for GdkDevice functions that might fail on slave devices.
Documentation bits have been added as well.
Carlos Garnacho [Mon, 24 Jan 2011 01:32:50 +0000 (02:32 +0100)]
Avoid toplevel tracking on slave device after ungrab
slave devices don't have coordinates themselves, as they depend
on a master, this only changes if they have a grab in effect,
so only keep toplevel tracking enabled in such situation. Fixes
Bug #640313 - BadDevice X error when ungrabbing a SLAVE device,
noticed by Jesse van den Kieboom.
Matthias Clasen [Sun, 23 Jan 2011 23:50:09 +0000 (18:50 -0500)]
Silence new gcc warnings
gcc 4.6.0 has started to warn about set-but-unused variables.
So don't do that, then.
Matthias Clasen [Sun, 23 Jan 2011 23:29:07 +0000 (18:29 -0500)]
Split out private style context api into a private header
Carlos Garnacho [Sun, 23 Jan 2011 22:19:30 +0000 (23:19 +0100)]
Free button_state.mask after XIQueryPointer()
This function allocates the button mask, so free it after
use, or right before the next XIQueryPointer() call, as done
in gdk_x11_device_xi2_window_at_position().
Carlos Garnacho [Sun, 23 Jan 2011 22:09:58 +0000 (23:09 +0100)]
Fix valgrind warning about uninitialized value
mods_state->effective is not being set in XIQueryPointer() currently, so
use base|latched|locked instead, effective is nothing else than a shorthand
for these ORs, and these 3 values are set correctly anytime.
Benjamin Otte [Sun, 23 Jan 2011 20:39:00 +0000 (21:39 +0100)]
gdk: When reffing the impl surface, ref it from the impl window
This was causing surfaces to be created with the wrong size and that
caused broken clipping.
https://bugzilla.gnome.org/show_bug.cgi?id=640195
Carlos Garnacho [Sun, 23 Jan 2011 19:01:22 +0000 (20:01 +0100)]
Render check/radio buttons with border-color: @fg_color
Carlos Garnacho [Sun, 23 Jan 2011 17:39:15 +0000 (18:39 +0100)]
GtkNotebook: only set/unset active flag on the tab label
Carlos Garnacho [Sun, 23 Jan 2011 17:37:14 +0000 (18:37 +0100)]
Simplify GTK_STATE_FLAG_FOCUSED handling in state propagation.
Just unsetting it before propagating to the children suffices.
Carlos Garnacho [Sun, 23 Jan 2011 17:21:32 +0000 (18:21 +0100)]
Do not unset sensitivity mistakenly in gtk_widget_set_state_flags()
together with commit
8903615a34, this finally fixes bug #640282.
Insensitivity is handled separatedly in _gtk_widget_update_state_flags(),
but the insensitive flag is mistakenly unset afterwards if clear is TRUE
in gtk_widget_set_state_flags().
Carlos Garnacho [Sun, 23 Jan 2011 17:04:41 +0000 (18:04 +0100)]
Gtk(Toggle)Button: preserve untouched state flags when updating state.
Partly fixes bug #640282, noticed by Christian Persch. buttons were
clobbering the insensitive flag when updating their state.
Matthias Clasen [Sun, 23 Jan 2011 17:26:23 +0000 (12:26 -0500)]
Add a migration guide section about GdkDrawable
https://bugzilla.gnome.org/show_bug.cgi?id=640188
Chun-wei Fan [Sun, 23 Jan 2011 16:10:19 +0000 (00:10 +0800)]
Update Visual C++ 2008 Project Files Stuff
-Updated README.txt file in build/win32/vs9.
-Fix the gdk.vcprojin and gtk+.vsprops regarding include paths
and copying of headers (missed header etc.)
Jorge González [Sun, 23 Jan 2011 14:10:51 +0000 (15:10 +0100)]
Updated Spanish translation
Kristjan SCHMIDT [Sun, 23 Jan 2011 12:48:41 +0000 (13:48 +0100)]
Updated Esperanto translation
Kjartan Maraas [Sun, 23 Jan 2011 10:41:44 +0000 (11:41 +0100)]
Updated Norwegian bokmål translation
Aron Xu [Sun, 23 Jan 2011 08:37:09 +0000 (08:37 +0000)]
Update Chinese (China) GTK+ po translation.
Matthias Clasen [Sun, 23 Jan 2011 04:48:39 +0000 (23:48 -0500)]
Expose gtk-auto-mnemonics as an Xsetting
Matthias Clasen [Sun, 23 Jan 2011 04:47:01 +0000 (23:47 -0500)]
checksettings: succeed quietly
Matthias Clasen [Sun, 23 Jan 2011 04:23:46 +0000 (23:23 -0500)]
Fix alignment problems with text cell renderers
When set to PANGO_ALIGN_CENTER, text was rendered off-center
by the amount of 'free space' that the PangoLayout left (ie
the x returned by pango_layout_get_pixel_extents).
Yaron Shahrabani [Sun, 23 Jan 2011 00:40:52 +0000 (02:40 +0200)]
Updated Hebrew translation.
Jorge González [Sat, 22 Jan 2011 15:51:03 +0000 (16:51 +0100)]
Updated Spanish translation
Ivar Smolin [Sat, 22 Jan 2011 09:53:00 +0000 (11:53 +0200)]
[l10n] Updated Estonian translation
Federico Mena Quintero [Fri, 21 Jan 2011 18:37:35 +0000 (12:37 -0600)]
bgo#639531 - [filechooser] Handle the case where the user types a nonexistent_subfolder/file.txt
The logic was to try to switch to that nonexistent folder and thus get
an error message presented. However, no such message actually appears,
as the file chooser tries to switch to the closest parent folder that
actually exists, without bringing up an error message --- this is done
to cope with the case of the file chooser being started with a folder
that doesn't exist anymore.
Now, we just bring up an error message directly when we detect that
the user types a subfolder name that doesn't exist.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Fri, 21 Jan 2011 21:39:17 +0000 (15:39 -0600)]
bgo#640161 - Maintain map/unmap invariants in GtkFileChooserDialog
We used to explicitly map and unmap the child GtkFileChooserWidget when
mapping and unmapping the dialog, respectively. Now that GtkWidget actually
unmaps child widgets (instead of avoiding that), we can assume that the
child GtkFileChooserWidget will be unmapped when we wanted it to be.
This fixes a warning that happened with the new GtkWidget invariant checker,
as we were mapping our child widget before calling our parent class' ::map() handler.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Fri, 21 Jan 2011 19:36:27 +0000 (13:36 -0600)]
bgo#626336 - Don't assume that GtkButton is activated only when a keyboard event is available
Buttons may also be activated at any time from gtk_widget_activate()
or related functions. In that case, just do the 'show the button
as pushed for a short amount of time' trick, but don't actually
try to grab the keyboard device.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
William Jon McCann [Thu, 20 Jan 2011 21:40:29 +0000 (16:40 -0500)]
Use actual app name in app choosers
Instead of using a strange composite of name and generic name.
https://bugzilla.gnome.org/show_bug.cgi?id=640005
Tomeu Vizoso [Fri, 21 Jan 2011 16:34:18 +0000 (17:34 +0100)]
[gi] Return value of gdk_window_new should have transfer full
Michael Natterer [Fri, 21 Jan 2011 14:38:52 +0000 (15:38 +0100)]
gtk: no need to add GTK_STYLE_FLAG_FOCUSED to the widget's state flags
because they correctly contain that flag now if the widget has focus.
Carlos Garnacho [Fri, 21 Jan 2011 14:19:44 +0000 (15:19 +0100)]
Make gtk_widget_get_state_flags() avoid propagating the focused flag down the hierarchy
There is only one widget supposed to have the focused flag at a given time,
so avoid propagating the state down the hierarchy, the focused flag is now
also set in _gtk_widget_set_has_focus().
Michael Natterer [Fri, 21 Jan 2011 14:06:43 +0000 (15:06 +0100)]
gtk: save/restore the cairo_t around early upchaining in draw()
and don't save/restore the style context because that's the job of
each draw() implementation.
Michael Natterer [Fri, 21 Jan 2011 11:47:56 +0000 (12:47 +0100)]
gtk: remove unused "window" variable from gtk_entry_draw_frame()
Fridrich Štrba [Fri, 21 Jan 2011 10:20:16 +0000 (11:20 +0100)]
fix win32 build after removal of the colormap debug category
Sebastian Pölsterl [Fri, 21 Jan 2011 09:36:07 +0000 (10:36 +0100)]
[gi] Added missing (allow-none) annotation to gdk_device_grab
Matthias Clasen [Fri, 21 Jan 2011 04:38:50 +0000 (23:38 -0500)]
Fix keynav issue in menu mode
Skipping insensitive and separator rows was broken in menu mode.
https://bugzilla.gnome.org/show_bug.cgi?id=639845
Benjamin Otte [Fri, 21 Jan 2011 03:39:20 +0000 (04:39 +0100)]
assistant: Fix mapped invariants
gtk_widget_verify_invariants() was complaining, now it's silent.
Matthias Clasen [Fri, 21 Jan 2011 03:35:09 +0000 (22:35 -0500)]
Avoid a warning if GtkCellView has no model
Matthias Clasen [Fri, 21 Jan 2011 02:36:50 +0000 (21:36 -0500)]
Fix a crash during DND
https://bugzilla.gnome.org/show_bug.cgi?id=640105
William Jon McCann [Thu, 20 Jan 2011 21:58:19 +0000 (16:58 -0500)]
When cancelling the app dialog return to the last item in combobox
https://bugzilla.gnome.org/show_bug.cgi?id=640011
Matthias Clasen [Fri, 21 Jan 2011 02:21:42 +0000 (21:21 -0500)]
Make GtkAppChooserButton work in modal context
Matthias Clasen [Fri, 21 Jan 2011 01:55:59 +0000 (20:55 -0500)]
Add a way to set the heading of GtkAppChooserDialog
The application can probably set a better string than the default
we construct, like 'Select an application for "software" files'.
Benjamin Otte [Sun, 16 Jan 2011 16:03:40 +0000 (17:03 +0100)]
gdk: Remove colormap debug category
We don't have colormaps anymore.
Benjamin Otte [Sun, 16 Jan 2011 13:47:59 +0000 (14:47 +0100)]
x11: Don't keep two lists of devices internally
Matthias Clasen [Fri, 21 Jan 2011 00:59:55 +0000 (19:59 -0500)]
Change the label of the GtkAppChooserDialog button
We are not "opening" an application, we are selecting it to
open a file. String change !
William Jon McCann [Thu, 20 Jan 2011 21:22:51 +0000 (16:22 -0500)]
Make the show more button follow the show-other property
Instead of show-all.
https://bugzilla.gnome.org/show_bug.cgi?id=640006
Matthias Clasen [Fri, 21 Jan 2011 00:00:38 +0000 (19:00 -0500)]
Adapt gtk_icon_info_load_symbolic to librsvg limitations too
Pointed out by Owen Taylor.
William Jon McCann [Thu, 20 Jan 2011 20:48:00 +0000 (15:48 -0500)]
Don't reserve a column of space the for icons in app chooser button
In order to more consistently present the items regardless of
whether they have icons or not.
Johan Dahlin [Thu, 20 Jan 2011 16:22:13 +0000 (14:22 -0200)]
Do not scan gtktextdisplay.h, avoids a scanner warning